package datastructure.segmenttree;

public class SegTest {
    public static void main(String[] args) {
        Integer[] nums = {1, 2, 3, 4, 5, 6};
        SegmentTree<Integer> segmentTree = new SegmentTree<Integer>(nums, (a, b) -> a + b);
        System.out.println("");
        Integer query = segmentTree.query(0, 2);
        System.out.println(query);
    }
}
